Repository navigation
Conversation
|
Hi @ktz03! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Please read through our contribution guide prior to creating your pull request.
Summary:
Integer-valued floating targets (such as
torch.tensor([0., 1.])) reach the scripted confusion-matrix helper with floating COO coordinates and raiseRuntimeError: indices must be an int64 tensor. Convert the shared coordinates toint64before constructing the sparse matrix, preserving count values and normalization. This covers binary and multiclass functional and metric APIs.Add four regression methods covering float32/float64 targets, all normalization modes, and merging metric states before normalization. Thanks to @rafael-patronilo for reporting the binary case. Fractional class labels remain outside the supported label contract.
Test plan:
pre-commit run --all-filesreports the same existing unusedunittestimport and seven unrelated formatting differences on the baseline; unrelated automatic edits were restored.Draft pending the required full-suite and all-files checks in a supported environment, and CLA verification.
Fixes #212